package com.roger.nettydemoclient.config;

import com.roger.nettydemocommon.dispatcher.MessageDispatcher;
import com.roger.nettydemocommon.dispatcher.MessageHandlerContainer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author luowenjie
 * @since 2021/11/27 21:29
 */
@Configuration
public class NettyClientConfig {

    @Bean
    public MessageDispatcher messageDispatcher() {
        return new MessageDispatcher();
    }

    @Bean
    public MessageHandlerContainer messageHandlerContainer() {
        return new MessageHandlerContainer();
    }

}
